import hmyRequest from '@/service'

////页面通用请求数据
//获取页面content数据
export function getPageListData(url: string, queryInfo: any) {
  return hmyRequest.post({
    url: url,
    data: queryInfo
  })
}
// 删除单个用户数据
export function deletePageData(url: string) {
  return hmyRequest.delete({
    url: url
  })
}
// 新建一个数据
export function createPageData(url: string, userInfo: any) {
  return hmyRequest.post({
    url: url,
    data: userInfo
  })
}
// 编辑一个数据
export function editPageData(url: string, userInfo: any) {
  return hmyRequest.patch({
    url: url,
    data: userInfo
  })
}
